<?php
/**
 *  认证相关
 */
namespace Services;
use Steam\Auth\UserAuth;

class AuthService {

    /**
     *  教师验证
     * @param $data = [
     *      'userName' => 17600263408,  // 用户名
     *      'passWord' => 123456,       // 密码
     *  ]
     *
     */
    public static function getTeacherToken($data){
        return $data;
        echo "<pre>";print_r($data);die;
    }

    /**
     *  用户认证
     */
    public static function getUserToken($data){

        $result = UserAuth::getToken($data);
        return $result;
    }
}